package com.dayuanit.dy17.atm.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AtmPropertiesConfig {

    @Value("${avatar.picture.path}")
    private String avatarPath;

    @Value("${atm.delay.time}")
    private int delayTime;

    @Value("${user.password.salt}")
    private String userPasswordSalt;

    @Value("${user.email.salt}")
    private String userEmailSalt;

    @Value("${user.resetpwd.url.expire.second}")
    private long resetPwdExpire;

    @Value("${atm.host}")
    private String atmHost;

    @Value("${atm.server.name}")
    private String serverName;

    public AtmPropertiesConfig() {
        System.out.println("---------AtmPropertiesConfig()--------------");
    }

    public String getAvatarPath() {
        return avatarPath;
    }

    public int getDelayTime() {
        return delayTime;
    }

    public String getUserPasswordSalt() {
        return userPasswordSalt;
    }

    public String getUserEmailSalt() {
        return userEmailSalt;
    }

    public long getResetPwdExpire() {
        return resetPwdExpire;
    }

    public String getAtmHost() {
        return atmHost;
    }

    public String getServerName() {
        return serverName;
    }
}
